<template>
	<view class="progress">
		<view class="progress-content">
			<view class="head">
				<view class="head_view">
					<!-- <view class="view1">
						<u-icon name="clock-fill" color="rgba(255, 195, 0, 1)" size="20"></u-icon>
						<text>退款中</text>
					</view> -->
					<view class="view1">
						<u-icon name="checkmark-circle-fill" color="#45D4A8" size="20"></u-icon>
						<text>退款成功</text>
					</view>
					<view class="view2">
						<text>￥</text>
						<text>56.80</text>
					</view>
				</view>
				<view class="head_view2">
					<text>预计03月31日前退回原支付账户</text>
				</view>
			</view>
			<view class="enjoy">
				<u-steps :current="0" dot direction="column" activeColor="rgba(68, 212, 168, 1)"
					inactiveColor="rgba(152, 160, 166, 1)">
					<u-steps-item v-for="item in steps" :key="item.id" :title="item.title"
						:desc="item.desc"></u-steps-item>
				</u-steps>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				steps: [{
						desc: "2025-03-06 12:30:45",
						title: "退款受理中",
						id: 1
					},
					{
						desc: "2025-03-07 12:30:45",
						title: "提交申请",
						id: 2
					}
				]
			}
		}
	}
</script>

<style lang="scss" scoped>
	/* #ifdef H5 */
	page {
		position: relative;
		height: 100%;
		background-color: #F6F8FC;
	}
	/* #endif */
	
	.progress {
		position: relative;
		background-color: #F6F8FC;
		height: 100%;
		padding-top: 24rpx;

		.progress-content {
			padding: 24rpx;
			background: #fff;
			margin: 0 24rpx;
			border-radius: 24rpx;

			.head {
				border-bottom: 2rpx solid rgba(237, 237, 237, 1);

				.head_view {
					display: flex;
					justify-content: space-between;
					align-items: center;

					.view1 {
						display: flex;
						align-items: center;
						font-size: 36rpx;
						font-weight: 700;
						color: rgba(54, 68, 79, 1);

						text:nth-child(2) {
							margin-left: 20rpx;
						}
					}

					.view2 {
						color: rgba(255, 140, 64, 1);

						text:nth-child(1) {
							/** 文本1 */
							font-size: 24rpx;
							font-weight: 500;
						}

						text:nth-child(2) {
							/** 文本2 */
							font-size: 40rpx;
							font-weight: 500;
						}
					}
				}

				.head_view2 {
					font-size: 24rpx;
					font-weight: 400;
					color: rgba(94, 103, 110, 1);
					margin-top: 16rpx;
					padding-bottom: 24rpx;
				}
			}

			.enjoy {
				padding: 40rpx 0 24rpx 0;
			}
		}
	}

	.u-steps-item--column {
		padding-bottom: 30rpx;
	}

	::v-deep .u-steps-item--column {
		padding-bottom: 50rpx;
	}
	
	.u-steps-item__line{
		height: 100%;
	}
	
	::v-deep .u-steps-item__line{
		height: 100%;
	}
</style>